package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("tz_question")
@Schema(description = "问题管理")
public class Question {

    /**
     * 问题id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "问题id")
    private Long id;

    /**
     * 名称
     */
    @TableField("name")
    @Schema(description = "名称" )
    private String name;

    /**
     * 答案
     */
    @TableField("answer")
    @Schema(description = "答案" )
    private String answer;

    /**
     * 父级id
     */
    @TableField("parent_id")
    @Schema(description = "父级id" )
    private Long parentId;

    /**
     * 状态
     */
    @TableField("status")
    @Schema(description = "状态")
    private String status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @Schema(description = "创建时间" )
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @TableField("create_by")
    @Schema(description = "创建人" )
    private String createBy;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Schema(description = "更新时间" )
    private LocalDateTime updateTime;

    /**
     * 更新人
     */
    @TableField("update_by")
    @Schema(description = "更新人" )
    private String updateBy;
}
